/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package org.aksw.treelearning.data;

import java.util.ArrayList;
/**
 * Interface for data storage, i.e., caches.
 * @author ngonga
 */
public interface Cache {
    public Instance getNextInstance();
    public ArrayList<Instance> getAllInstances();
    public ArrayList<String> getAllUris();
    public void addInstance(Instance i);
    public void addTriple(String s, String p, String o);
    public boolean containsInstance(Instance i);
    public boolean containsUri(String uri);
    public Instance getInstance(String uri);
    public void resetIterator();
    public int size();
    public Cache getSample(int size);
    public Cache processData(String processingChain);
}
